package com.example.cycledependency;

import org.springframework.beans.factory.annotation.Autowired;

public class InstanceB implements IApi{
    @Autowired
    private InstanceB instanceB;

    public InstanceB(InstanceB instanceB) {
        this.instanceB = instanceB;
    }

    public InstanceB getInstanceB() {
        return instanceB;
    }

    public void setInstanceB(InstanceB instanceB) {
        this.instanceB = instanceB;
    }

    @Override
    public void execute() {
        System.out.println("i am instanceB");
    }
}
